class SchoolMember:
    '''Stand for any school member.'''
    def __init__(self, name, age):
        self.name = name
        self.age = age
        print 'Initializing SchoolMember %s' % self.name

    def tell(self):
        '''Tell my info'''
        print 'Name %s Age %s' % (self.name, self.age),


class Teacher(SchoolMember):
    '''Stand for a teacher.'''
    def __init__(self, name, age, salary):
        SchoolMember.__init__(self, name, age)
        self.salary = salary
        print "Initializing teacher %s" % self.name

    def tell(self):
        SchoolMember.tell(self)
        print 'Salary %d' %self.salary

class Student(SchoolMember):
    '''Stand for a student'''
    def __init__(self, name, age, marks):
        SchoolMember.__init__(self, name, age)
        self.marks = marks
        print 'Initializing student %s' % self.name

    def tell(self):
        SchoolMember.tell(self)
        print 'marks %d' % self.marks

t = Teacher('Yangxin', 28, 300000)
s = Student('xiongxong', 20, 1)

print

members = [t, s]

for member in members:
    member.tell()
